package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * CommodityClassificationCommodityBrand
 *   商品分类与商品品牌关系表
 * @author Clevo
 * @date 2019/1/22 22:47
 */
@Entity
@Table(name = "commodity_classification_commodity_brand")
public class CommodityClassificationCommodityBrand extends BasePojo {

    @ManyToOne
    @JoinColumn(name = "commodity_brand_id")
    private CommodityBrand commodityBrand;

    @ManyToOne
    @JoinColumn(name = "commodity_classification_id")
    private CommodityClassification commodityClassification;

    public CommodityBrand getCommodityBrand() {
        return commodityBrand;
    }

    public void setCommodityBrand(CommodityBrand commodityBrand) {
        this.commodityBrand = commodityBrand;
    }

    public CommodityClassification getCommodityClassification() {
        return commodityClassification;
    }

    public void setCommodityClassification(CommodityClassification commodityClassification) {
        this.commodityClassification = commodityClassification;
    }
}
